package com.hectopascal.goalance.pojo.dto;

import jakarta.persistence.Column;
import jakarta.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;

public class UserAdd {
    @NotNull
    private String username;
    @NotNull
    @Length(min=6,max=20)
    private String password;
    private Integer role;
    @Column(name = "department_id")
    private Integer departmentId;

    public UserAdd() {
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getRole() {
        return role;
    }

    public void setRole(Integer role) {
        this.role = role;
    }

    public Integer getDepartmentId() {
        return departmentId;
    }

    public void setDepartmentId(Integer departmentId) {
        this.departmentId = departmentId;
    }

    @Override
    public String toString() {
        return "UserAdd{" +
                "username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", role='" + role + '\'' +
                ", departmentId='" + departmentId + '\'' +
                '}';
    }
}
